#ifndef ACTIONTABLEWIDGET_H
#define ACTIONTABLEWIDGET_H

#include <QTableWidget>

class ActionTableWidget : public QTableWidget
{
    Q_OBJECT
public:
    ActionTableWidget(QWidget *parent = nullptr);

protected:
    void dropEvent(QDropEvent *event) override;

private:
    int position(QPoint pos, QRect rect, QModelIndex &index);
    bool droppingOnItself(QDropEvent *event, QModelIndex& index);
};

#endif // ACTIONTABLEWIDGET_H
